package com.example.thegreatwall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "product_type")
public class ProductType {
    /**
     * 自增id
     */
    @TableId(value = "product_type_id", type = IdType.AUTO)
    private Integer productTypeId;

    /**
     * 类型名称
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 图标
     */
    @TableField(value = "type_icon")
    private String typeIcon;

    /**
     * 英文
     */
    @TableField(value = "english")
    private String english;
    @TableField(value = "status")
    private int status;
}